/*
 * +----------------------------------------------------------------------
 * | Copyright (c) 奇特物联 2021-2022 All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed 未经许可不能去掉「奇特物联」相关版权
 * +----------------------------------------------------------------------
 * | Author: xw2sy@163.com
 * +----------------------------------------------------------------------
 */
package cc.iotkit.data.service;

import cc.iotkit.data.mapper.IJPACommData;
import cc.iotkit.data.manager.ICategoryData;
import cc.iotkit.data.model.TbCategory;
import cc.iotkit.model.product.Category;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Primary
@Service
public class CategoryDataImpl implements ICategoryData, IJPACommData<Category, String, TbCategory> {

    @Resource
    private CategoryService categoryService;

    @Override
    public CategoryService getBaseRepository() {
        return categoryService;
    }

    @Override
    public Class getJpaRepositoryClass() {
        return TbCategory.class;
    }

    @Override
    public Class getTClass() {
        return Category.class;
    }

}
